package mysql

import "gorm.io/gorm"

type Order struct {
	gorm.Model
	TechnicianId int    `gorm:"type:int(8);comment:技师ID;"`
	WorkId       int    `gorm:"type:int(8);comment:服务Id;"`
	Price        int    `gorm:"type:int(11);comment:总金;"`
	OrderNum     string `gorm:"type:varchar(30);comment:订单号;"`
}

func (c *Order) InsertOrder() error {
	return Db.Create(&c).Error
}
